<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html>
<head>
<base href="<%=basePath%>">
<title>充值退换审核</title>
<%@include file="../collect/meta.jsp"%>
<script type="text/javascript" charset="utf-8"
	src="${ctx }/calender/WdatePicker.js"></script>
<script type="text/javascript" src="${ctx}/js/returnTop.js"></script>
<link rel="stylesheet" href="css/date.css" type="text/css"></link>
<link rel="stylesheet" href="css/radius.css" type="text/css"></link>
<link rel="stylesheet" href="css/table.css" type="text/css"></link>
</head>
<body lang="zh-cn">
	<div class="wrapper">
		<c:import url="/collect/top.jsp"></c:import>
		<div class="main-container" id="main-container">
			<div class="main-container-inner">
				<c:import url="/collect/left.jsp"></c:import>
				<div class="main-content">
					<div class="breadcrumbs" id="breadcrumbs">
						<ul class="breadcrumb">
							<li><i class="icon-home home-icon"></i>退换审核</li>
							<li>充值退换审批</li>
						</ul>
						<!-- .breadcrumb -->
					</div>
					<div class="page-content">
						<div class="row">
							<div class="col-xs-12">
								<!-- PAGE CONTENT BEGINS -->
								<form action="bApplication!accountAuditorSelectBalance">
									<input type="text" class="Wdate"
										onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" placeholder="开始时间"
										name="beginTime" value="${beginTime }">
									<input type="text" class="Wdate"
										onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" placeholder="结束时间"
										name="endTime" value="${endTime }"> <select
										name="passType">
										<option value="4"
											<c:if test="${passType == 4}">selected='selected'</c:if>>全部</option>
										<option value="1"
											<c:if test="${passType == 1}">selected='selected'</c:if>>未审核</option>
										<option value="2"
											<c:if test="${passType == 2}">selected='selected'</c:if>>批准</option>
										<option value="3"
											<c:if test="${passType == 3}">selected='selected'</c:if>>不批准</option>
									</select> <input type="submit" class="btn btn-primary radius btn-sm"
										value="搜 索">
									<c:if test="${message==null }"></c:if>
									<c:if test="${message!=null }">
										<span style="color: red;">${message }</span>
									</c:if>
								</form>
								<br />
								<c:if test="${temp!=''}">
									<form>
										<table class="table table-striped table-bordered table-hover">
											<tr>
												<th>会员账号</th>
												<th>会员姓名</th>
												<th>充值金额</th>
												<th>申请时间</th>
												<th>申请人</th>
												<th>申请店铺</th>
												<th>申请理由</th>
												<th>状态</th>
												<th>操作</th>
											</tr>
											<c:forEach items="${bList}" var="b" varStatus="status">
												<tr>
													<td>${b.member.mobile}
													</td>
													<td>
															<c:if test="${not empty b.balanceDeleteLog.memberName }">${b.balanceDeleteLog.memberName}</c:if>
													</td>
													<td>${b.balanceDeleteLog.money
															}
													</td>
													<td>${b.createTime }
													</td>
													<td>${b.balanceDeleteLog.userName
															}
													</td>
													<td>${b.balanceDeleteLog.shopName}
													</td>
													<td>
															<c:if test="${b.applicationType==1}">操作失误</c:if>
															<c:if test="${b.applicationType==2}">${b.applicationReason }</c:if>
													</td>
													<td>
															<c:if test="${b.auditorPass==1}">未审核</c:if>
															<c:if test="${b.auditorPass==2}">批准</c:if>
															<c:if test="${b.auditorPass==3}">不批准</c:if>
													</td>
													<td>
															<c:if test="${b.auditorPass==2}">您已批准</c:if>
															<c:if test="${b.auditorPass==3}">不批准</c:if>
															<c:if test="${b.auditorPass==1}">
																<a class="btn btn-xs btn-primary radius"
																	onclick="return confirm('确定批准？')"
																	href="bApplication!submitAuditorBalance?bApplication.id=${b.id}">批准</a>
																<a class="btn btn-xs btn-primary radius"
																	onclick="return confirm('确定不批准？')"
																	href="bApplication!submitAuditorBalance1?bApplication.id=${b.id}">不批准</a>
															</c:if>
														</td>
												</tr>
											</c:forEach>
										</table>
										<div class="row" id="page">
											<ul class="pagination">
												<li><a
													href="bApplication!accountAuditorSelectBalance?index=1&beginTime=${beginTime }&endTime=${endTime }&passType=${passType}">首页</a>
												</li>
												<li class="prev">
													<!--上一页--> <a
													href="bApplication!accountAuditorSelectBalance?index=${index-1}&beginTime=${beginTime }&endTime=${endTime }&passType=${passType}">
														<i class="icon-double-angle-left"></i> </a></li>
												<!-- <li>
										            <a href="smsLog!getList?index=${index-1}">上一页</a>
										        </li> -->
												<li><a href="javascript:void(0)">${index }</a>
												</li>
												<!-- <li>
										            <a href="smsLog!getList?index=${index+1}">下一页</a>
										        </li> -->
												<li class="next">
													<!--下一页--> <a
													href="bApplication!accountAuditorSelectBalance?index=${index+1}&beginTime=${beginTime }&endTime=${endTime }&passType=${passType}">
														<i class="icon-double-angle-right"></i> </a></li>
												<li><a
													href="bApplication!accountAuditorSelectBalance?index=${page }&beginTime=${beginTime }&endTime=${endTime }&passType=${passType}">末页</a>
												</li>
												<li><a href="javascript:void(0)">共${page }页</a>
												</li>
											</ul>
										</div>
									</form>
								</c:if>
								<!-- PAGE CONTENT ENDS -->
							</div>
							<!-- /.col -->
						</div>
						<!-- /.row -->
					</div>
					<!-- /.page-content -->
				</div>
				<!-- /.main-content -->
			</div>
			<!-- /.main-container-inner -->
			<a href="#" id="btn-scroll-up"
				class="btn-scroll-up btn btn-sm btn-inverse"
				style="position: fixed; bottom: 0;"> <i
				class="icon-double-angle-up icon-only bigger-110"></i> </a>
		</div>
		<!-- /.main-container -->
		<div class="push"></div>
	</div>
	<c:import url="/collect/down.jsp"></c:import>

	<script type="text/javascript">
			 //防收回；$积分规则
		$('.tuihuan > ul').show();
		$('.tuihuan > ul > li > a').eq(1).css("color","red"); 
	</script>
</body>
</html>